﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="sparepartLeftInStock.aspx.cs" Inherits="sparepartLeftInStock" Title="Untitled Page" %>
<%@ Register assembly="GridViewSortIndicatorSample" namespace="GuiHelpers" tagprefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">  
<asp:Panel runat="server" ID="pnlBody">  
<table  class="GridItem" cellspacing="2" cellpadding="2" style="width:100%;height:350px">
<tr><td  class="BigLabel" >
         
         
         <asp:Label ID="lblTotalEquipment" runat="server" Text="Label"></asp:Label><asp:Label ID="lblMessageValidate" runat="server" CssClass="permissionstyle"></asp:Label>
         
        </td></tr>
  <tr>
  
  <td >
<div style=" height:350px; width:auto; overflow:auto">    
    <asp:GridView ID="grdEquipments" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" 
        AllowSorting="True" 
        DataSourceID ="odsSparepart"
        RowHeaderColumn="EquipmentId" CssClass="GridItem" BorderStyle="None" 
        PageSize="30" onselectedindexchanged="grdEquipment_SelectedIndexChanged" 
        onrowcommand="grdEquipments_RowCommand">
        
        <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" />
        <Columns>
            
            
            <asp:CommandField ShowSelectButton="True" />
            
            
            <asp:BoundField DataField="typeequipment" HeaderText="Spare part" 
                SortExpression="typeequipment">
                <ItemStyle Width="600px" HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField HeaderText="Nb left" DataField="modulus" 
                SortExpression="modulus">
                <ItemStyle Width="50px" HorizontalAlign="Right" />
            </asp:BoundField>
            <asp:BoundField HeaderText="Min" DataField="minimuminstock" 
                SortExpression="minimuminstock" >
                <ItemStyle Width="50px" HorizontalAlign="Right" />
            </asp:BoundField>
            <asp:BoundField DataField="Maximuminstock" HeaderText="Max" 
                SortExpression="Maximuminstock">
                <ItemStyle Width="50px" HorizontalAlign="Right" />
                <ItemStyle Width="40px" />
            </asp:BoundField>
        </Columns>
        <PagerStyle HorizontalAlign="Center" 
            VerticalAlign="Middle" />
        <EditRowStyle BackColor="LightGray" />
        <RowStyle CssClass="AlternativeRowStyle" />
        <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" />
    </asp:GridView>
    </div>
    <cc2:gridviewsortextender ID="GridViewSortExtender1" runat="server" 
                    AscendingImageUrl="~/images/Ascending.gif" 
                    DescendingImageUrl="~/images/Descending.gif" 
          ExtendeeID="grdEquipment">
                </cc2:gridviewsortextender>
    <asp:ObjectDataSource ID="odsSparepart" runat="server" 
                    SelectMethod="GetAvailableSparepartsInStock" 
          TypeName="DirectService" onselected="odsSparepart_Selected">
                   
                </asp:ObjectDataSource>
           </td></tr>
    
         
    </table>
    
</asp:Panel>
    
</asp:Content>

